# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Orion <systmkor@gmail.com>
pkgname=py3-scrapy
pkgver=2.6.1
pkgrel=0
pkgdesc="Fast high-level scraping and web crawling framework"
url="https://scrapy.org/"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-cssselect
	py3-itemadapter
	py3-lxml
	py3-openssl
	py3-parsel
	py3-protego
	py3-pydispatcher
	py3-queuelib
	py3-service_identity
	py3-six
	py3-twisted
	py3-w3lib
	"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/S/Scrapy/Scrapy-$pkgver.tar.gz"
builddir="$srcdir"/Scrapy-$pkgver

# secfixes:
#   2.6.1-r0:
#     - CVE-2022-0577
#     - CVE-2022-21716

replaces="py-scrapy" # Backwards compatibility
provides="py-scrapy=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
3ba0ac59fceb3c536be5dbc9f8101751b3dba8bc3e64f11657d6d0d2624ac546866dd87b5e8a73d40d044f4927c98abfba5acd30c866fa0640c31f63c6c6ce11  Scrapy-2.6.1.tar.gz
"
